home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMNSEventTarget.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  112 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMNSEventTarget.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMNSEventTarget_h__
  6. #define __gen_nsIDOMNSEventTarget_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMNSEventTarget */
  19. #define NS_IDOMNSEVENTTARGET_IID_STR "6cbbbf64-212f-4ef8-9ad4-7240dbb8d6ac"
  20.  
  21. #define NS_IDOMNSEVENTTARGET_IID \
  22.   {0x6cbbbf64, 0x212f, 0x4ef8, \
  23.     { 0x9a, 0xd4, 0x72, 0x40, 0xdb, 0xb8, 0xd6, 0xac }}
  24.  
  25. /**
  26.  * The nsIDOMNSEventTarget interface is an extension to the standard
  27.  * nsIDOMEventTarget interface, implemented by all event targets in
  28.  * the Document Object Model.
  29.  */
  30. class NS_NO_VTABLE nsIDOMNSEventTarget : public nsISupports {
  31.  public: 
  32.  
  33.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMNSEVENTTARGET_IID)
  34.  
  35.   /**
  36.    * This method is the same as the addEventListener() method defined
  37.    * in nsIDOMEventTarget, but it takes one additional argument which
  38.    * lets callers control whether or not they want to receive
  39.    * untrusted events (synthetic events generated by untrusted code)
  40.    *
  41.    * @param   type See the type argument to the same method in
  42.    *               nsIDOMEventTarget.
  43.    * @param   listener See the listener argument to the same method in
  44.    *                   nsIDOMEventTarget.
  45.    * @param   useCapture See the listener argument to the same method in
  46.    *                     nsIDOMEventTarget.
  47.    * @param   wantsUntrusted If false, the listener will not receive any
  48.    *                         untrusted events (see above), if true, the
  49.    *                         listener will receive events whether or not
  50.    *                         they're trusted
  51.    */
  52.   /* void addEventListener (in DOMString type, in nsIDOMEventListener listener, in boolean useCapture, in boolean wantsUntrusted); */
  53.   NS_IMETHOD AddEventListener(const nsAString & type, nsIDOMEventListener *listener, PRBool useCapture, PRBool wantsUntrusted) = 0;
  54.  
  55. };
  56.  
  57. /* Use this macro when declaring classes that implement this interface. */
  58. #define NS_DECL_NSIDOMNSEVENTTARGET \
  59.   NS_IMETHOD AddEventListener(const nsAString & type, nsIDOMEventListener *listener, PRBool useCapture, PRBool wantsUntrusted); 
  60.  
  61. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  62. #define NS_FORWARD_NSIDOMNSEVENTTARGET(_to) \
  63.   NS_IMETHOD AddEventListener(const nsAString & type, nsIDOMEventListener *listener, PRBool useCapture, PRBool wantsUntrusted) { return _to AddEventListener(type, listener, useCapture, wantsUntrusted); } 
  64.  
  65. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  66. #define NS_FORWARD_SAFE_NSIDOMNSEVENTTARGET(_to) \
  67.   NS_IMETHOD AddEventListener(const nsAString & type, nsIDOMEventListener *listener, PRBool useCapture, PRBool wantsUntrusted) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddEventListener(type, listener, useCapture, wantsUntrusted); } 
  68.  
  69. #if 0
  70. /* Use the code below as a template for the implementation class for this interface. */
  71.  
  72. /* Header file */
  73. class nsDOMNSEventTarget : public nsIDOMNSEventTarget
  74. {
  75. public:
  76.   NS_DECL_ISUPPORTS
  77.   NS_DECL_NSIDOMNSEVENTTARGET
  78.  
  79.   nsDOMNSEventTarget();
  80.  
  81. private:
  82.   ~nsDOMNSEventTarget();
  83.  
  84. protected:
  85.   /* additional members */
  86. };
  87.  
  88. /* Implementation file */
  89. NS_IMPL_ISUPPORTS1(nsDOMNSEventTarget, nsIDOMNSEventTarget)
  90.  
  91. nsDOMNSEventTarget::nsDOMNSEventTarget()
  92. {
  93.   /* member initializers and constructor code */
  94. }
  95.  
  96. nsDOMNSEventTarget::~nsDOMNSEventTarget()
  97. {
  98.   /* destructor code */
  99. }
  100.  
  101. /* void addEventListener (in DOMString type, in nsIDOMEventListener listener, in boolean useCapture, in boolean wantsUntrusted); */
  102. NS_IMETHODIMP nsDOMNSEventTarget::AddEventListener(const nsAString & type, nsIDOMEventListener *listener, PRBool useCapture, PRBool wantsUntrusted)
  103. {
  104.     return NS_ERROR_NOT_IMPLEMENTED;
  105. }
  106.  
  107. /* End of implementation class template. */
  108. #endif
  109.  
  110.  
  111. #endif /* __gen_nsIDOMNSEventTarget_h__ */
  112.